package com.xing.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: mycloud1
 * @author: Xingqilin
 * @create: 2020-07-08 11:42
 * @description:
 */
@RestController
@RequestMapping("/hello")
public class HelloController {
    @Value("${server.port}")
    private Integer port;
    @RequestMapping("/hai")
    public String hello(){
        return "HelloController.hello"+port;
    }
}
